home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00035.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  735 b   |  31 lines

  1. on enterFrame
  2.   global gCurrLabel, gPlaySound, audioPath
  3.   if the frameLabel <> 0 then
  4.     gCurrLabel = the frameLabel
  5.   end if
  6.   if gPlaySound then
  7.     gPlaySound = 0
  8.     soundFile = getAudioFile(the frame)
  9.     sound playFile 1, audioPath & soundFile & ".AIF"
  10.   end if
  11. end
  12.  
  13. on exitFrame
  14.   global gPlaySound, gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow
  15.   repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
  16.     doRollover(rc)
  17.   end repeat
  18.   if soundBusy(1) then
  19.     go(the frame)
  20.   else
  21.     repeat with z = 2 to 10
  22.       if not (the memberNum of sprite z = 0) then
  23.         sprite(z).visible = 1
  24.       end if
  25.     end repeat
  26.     updateStage()
  27.     gPlaySound = 1
  28.     go(the frame + 1)
  29.   end if
  30. end
  31.